package com.jiale.ojsystem.judge.codesandbox.impl;

import com.jiale.ojsystem.judge.codesandbox.CodeSandBox;
import com.jiale.ojsystem.judge.codesandbox.modle.ExecuteCodeRequest;
import com.jiale.ojsystem.judge.codesandbox.modle.ExecuteCodeResponse;

import java.util.Arrays;

public class ExampleCodeSandBox implements CodeSandBox {
    @Override
    public ExecuteCodeResponse doExecute(ExecuteCodeRequest executeCodeRequest) {
        ExecuteCodeResponse executeCodeResponse = ExecuteCodeResponse.builder()
                .costedTime(1000L)
                .costMemory(1000L)
                .outputList(Arrays.asList("1"))
                .build();
        System.out.println("示例代码沙箱");
        return executeCodeResponse;
    }
}
